﻿@section header
{
<link href="@Url.Content("~/Content/Online/Index.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/Online/BusinessProvider/fKanban.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Online/BusinessProvider/fKanban.userStory.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Utility/Index.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Online/Index.js")" type="text/javascript"></script>
}
@Html.Partial("UserSotryAddControl")

<!--user story list-->
<div class="user_story">
    <table class="user_story_table">
        <tr class="user_story_head_row">
            <td class="user_story importance">重要性Importance</td>
            <td class="user_story userStory"><a href="javascript:;" title="点击添加新用户故事" class="jAddNewItem" data-value="user-story-addpanel">+用户故事User Story</a></td>
            <td class="user_story estimate">初始估算Estimate</td>
            <td class="user_story master">负责人Master</td>
            <td class="user_story owner">需求方Owner</td>
            <td class="user_story">管理Manage</td>
        </tr>
@{
    var userStories = ViewData["userStories"] as List<fKanban.Model.UserStoryEntity>;
    if(userStories != null && userStories.Count > 0){
        foreach (var item in userStories)
        {
            <tr class="user_story_row" id="story@{@item.Id}">
                <td><span class="f_importance" data-id="@item.Id">@item.Importance</span></td>
                <td>
                    <a href="/Shopping/Online/fKanban/@ViewData["id"]/@item.Id">
                        <span class="Id">@item.Id</span>
                        <span class="Name">@item.Name</span></a> <br />
                    <span class="business-value">作为@{@item.Role},我需要@{@item.Ability}功能,这样@{@item.Benefit}</span>
                </td>
                <td class="user_story estimate"><mark>@item.Estimate</mark>人天</td>
                <td class="user_story master"><a href="http://phone.vancloa.cn/module/AdvancedSearchs.aspx?type=simpleSearch&objectname=@item.Master">@item.Master</a></td>
                <td class="user_story owner">@item.Owner</td>
                <td>
                    <a href="javascript:;" title="点击编辑该项" class="modify" data-storyid="@item.Id" data-rowid="story@{@item.Id}">编辑Modify</a> 
                    <a href="javascript:;" title="点击删除该项" class="remove" data-storyid="@item.Id" data-rowid="story@{@item.Id}">删除Remove</a></td>
            </tr>
        }
    }
}
    </table>
</div>
